package com.link.common.packet.recv;

import com.link.common.util.BinaryUtils;
import io.netty.buffer.ByteBuf;

public record RegisterPacket(String mobile, String code) {
    public static  RegisterPacket fromBinary(ByteBuf buffer){

        String mobile = BinaryUtils.readString(buffer );
        String code = BinaryUtils.readString(buffer );

        return new RegisterPacket(mobile, code);
    }
}
